<template>
	<view class="">
		<view class="" style="height: 100px;background: blue;margin-top: 30px;" v-for="(item,i) in 10">
			{{ i }}
		</view>
	</view>
</template>

<script  setup lang="ts">
	import { onMounted,onUnmounted } from 'vue';
	
	onMounted(()=>{
		uni.$on('onReach',(params)=>{
			console.log('params',params.value)
			if(params.value == 'mine'){
				console.log('mine')
			}
		})
	})
	onUnmounted(()=>{
		uni.$off('onReach')
	})
</script>

<style>
</style>